﻿@{
    ViewBag.Title = "AllKindsDirectory";
}

<dl>
    <dt>
        System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)
    </dt>
    <dd>
        @System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)
    </dd>

    <dt>
        (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Substring("file:///".Length, System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Length - "file:///".Length).Replace("/", @@"\")) + @@"\")
    </dt>
    <dd>
        @(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Substring("file:///".Length, System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Length - "file:///".Length).Replace("/", @"\")) + @"\")
    </dd>

    <dt>
        System.Environment.CurrentDirectory
    </dt>
    <dd>
        @System.Environment.CurrentDirectory
    </dd>
      
    <dt>
        AppDomain.CurrentDomain.BaseDirectory
    </dt>
    <dd>
        @AppDomain.CurrentDomain.BaseDirectory
    </dd>
</dl>
